<h1>Listing shangpins</h1>

<div id=gouwu>

<%=@update%>
<% session[:gouwuche].each do |shangpin| %>
 <% form_for :shangpin,shangpin, :url => { :action => "gouwuche" } do |f| %>

<%=shangpin.biaoti%>    shuliang:<%= f.text_field :shuliang %>
<%=f.hidden_field:id%>
    <%= submit_tag 'update' %>

<%end%>
<%end%>
<%= link_to 'jixu goumai', shangpins_path %>
<%= link_to 'xia dingdan', new_dingdan_path %>
</div>